<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
		<!-- 
		  
		-->
	</head>
	<body>
		<div id="app">
			<stu>
				<h5>好好学习</h5>
				<h5>天天向上</h5>
				<h5>奋发图强</h5>
			</stu>
		</div>
		<template id="stu">
			<div>
				<h3>学生组件</h3>
				//匿名插槽
				<slot></slot>
				<slot></slot>
			</div>
		</template>
		<script type="text/javascript">
			let vm = new Vue({
				el: '#app',
				components: {
					stu: {
						template: '#stu'
					}
				}
			})
		</script>
	</body>
</html>
